﻿
<%@ Page Language="C#"  %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data.SqlClient" %>


<%
    


   
    

   // string profile_pic = Request.QueryString["image"];



    SqlConnection conn = null;
    conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnStr"].ConnectionString);
    conn.Open();






    SqlCommand cm1 = new SqlCommand("Delete from properties_rent  where p_id='" + Request.QueryString["id"].ToString() + "'", conn);
    cm1.ExecuteNonQuery();

    Response.Redirect("report_property_for_rent.aspx");
    %>